<template>
  <div>
     <form action="http://www.itcast.cn" @submit.stop.prevent="fn">

            <input type="text">

            <button @click.prevent.stop='fn2($event)'>提交</button>
            
        </form>
   </div>
</template>
 
<script>
export default {
 
  data() {
    return {

    };
  },

  methods: {
    fn2(e){
       e.preventDefault()
    
    }
  }
};
</script>

<style scoped>
     
</style>